<?php $this->load->view('Help/navbar');?>
<!-- Tab panes -->
<div class="tab-content" style="margin-top: 10px;">
    <div role="tabpanel" class="tab-pane" id="noticeList">
    	<!-- 查询框开始 -->
	    <div class="table-responsive">
	    	<button type="button" class="btn btn-default" role="button" onclick="newWindow('添加广告','<?php echo printUrl('Help','noticeAdd');?>',1000,600)">添加公告</button>
	    </div>
	    <!-- 表格列表 -->
	      <div style="margin-top: 10px;">
	      <table class="table table-bordered table-condensed">
	        <thead>
	          <tr>
	            <th class="bg-primary text-center">公告标题</th>
	            <th class="bg-primary text-center">显示端口</th>
	            <th class="bg-primary text-center">添加时间</th>
	            <th class="bg-primary text-center">操作</th>
	          </tr>
	        </thead>
	        <tbody>
	          <?php foreach ($noticeList as $k => $v) {?>
	          <tr>
	            <td class="text-center"><?=$v['title']?></td>
	            <td class="text-center"><?=$v['displayRoleStr']?></td>
	            <td class="text-center"><?=date("Y-m-d H:i:s", $v['createTime'])?></td>
	            <td class="text-center">
	            	<button type="button" class="btn btn-default" role="button" onclick="newWindow('修改文件','<?php echo printUrl('Help','noticeAdd', array('id'=>$v['id']));?>',1000,600)">修改</button>
	            	<button type="button" class="btn btn-default" role="button" onclick="ajaxConfirmSubmit('您确定要删除此文件吗？此操作不可撤销','<?php echo printUrl('Help','noticeDel')?>',{'id':<?=$v['id']?>})">删除</button>
	            </td>
	          </tr>
	          <?php } ?>
	        </tbody>
	      </table>
	      </div>
    </div>
</div>
<?php $this->load->view('Help/foot');?>